/*
 * @Author: jack-ZM
 * @Date: 2022-08-04 15:25:24
 * @LastEditors: jack-ZM
 * @LastEditTime: 2022-08-11 00:27:43
 * @FilePath: /vue3ts-admin-template/src/store/useSetting.ts
 * @Description: 全局化配置
 *
 * Copyright (c) 2022 by zsm smzhang@fiberhome.com, All Rights Reserved.
 */
import { defineStore } from 'pinia';
export const useSetting = defineStore('useSetting', {
    state: () => {
        return {
            // 是否需要头部路由（不需要的话全部为左侧路由）
            showHeadRouter: true,
            //默认主题
            defaultTheme: 'light'
        };
    },
    actions: {
        changeTheme(theme: string) {
            this.defaultTheme = theme;
        }
    }
});
